package com.guigu.www.luolujin.Conteoller;

import com.guigu.www.luolujin.Service.LljProposeService;
import com.guigu.www.pojo.PageVo;
import com.guigu.www.pojo.Propose;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 作者 罗露金
 */
@RestController
@RequestMapping("/LljProposeServlet")
public class LljProposeServlet {
    @Autowired
    LljProposeService service;
    @GetMapping()
    public PageVo<Propose> pagePropose(Integer pageNum, Integer pageSize, String propoTitle){
        return service.pagePropose(pageNum, pageSize, propoTitle);
    }
    @PutMapping
    public void updatePropose(@RequestBody Propose Propose){
        service.updatePropose(Propose);
    }
    @GetMapping("/byId")
    public Propose selectById(Integer propoId) {
        return service.selectById(propoId);
    }
}
